import time

import page
from base.base import Base


class PageProductSearch(Base):
    # 在输入框中输入手机
    def page_input_phone(self, content):
        self.base_in_element_input(page.product_search_input, content)

    # 点击搜索按钮
    def page_click_search_btn(self):
        self.base_click_element(page.product_search_btn)

    def page_search(self, content):
        self.page_input_phone(content)
        self.page_click_search_btn()
        time.sleep(0.5)
